package com.cdhkppm;

import com.spring4all.swagger.EnableSwagger2Doc;

import lombok.extern.slf4j.Slf4j;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.retry.annotation.EnableRetry;

@SpringBootApplication(scanBasePackages = {"com.cdhkppm", "com.ty", "com.hustcad.plm", "cn.hutool.extra.spring", "org.springframework.boot.context.properties"})
@EnableSwagger2Doc
@Import(cn.hutool.extra.spring.SpringUtil.class)
@MapperScan(basePackages = "com.ty.ppm.**.mapper")
@tk.mybatis.spring.annotation.MapperScan(basePackages = {
    "com.ty.*.*.mapper", "com.hustcad.plm.*.mapper", "com.hustcad.plm.*.*.mapper", "com.ty.pdm.*.*.mapper",
    "com.ty.*.mapper.*",  "com.ty.*.mapper",    "com.hustcad.*.mapper", "com.ty.inteplm.**.mapper", "com.cdhkppm.**.mapper"
})
@ComponentScan(basePackages = {
    "com.cdhkppm", "com.ty", "com.hustcad", "com.hustcad.plm.pdm.workflow.controller",  "com.hustcad.plm.pdm.workflow.service",
    "com.hustcad.plm.pdm.workflow.config", "com.hustcad.plm.pdm.workflow.service.impl.extend",
    "com.hustcad.plm.basic", "com.hustcad.plm.pdm.workflow.model.entity","com.hustcad.plm.pdm.workflow.handler.exception"
})
@Slf4j
@EnableDiscoveryClient
@EnableRetry
public class ProjectMngApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProjectMngApplication.class,args);
    }

}
